#ifndef __DEMO_H__
#define __DEMO_H__

#include <opencv2/opencv.hpp>
#include <opencv2/ml/ml.hpp>
#include <pthread.h>
#include <iostream>
#include <stdlib.h>
#include "gyro.h"
#include "armor_attitude_algorithm.h"
#include "send_data.h"

#include "KSJCamera.h"
#include "serialport.h"	
using namespace std;
using namespace cv;
using namespace cv::ml;

extern FileStorage g_fs_read;
extern Ptr<SVM> g_svm_load;
extern Ptr<SVM> g_sentry_load;
//处理图像
void* Run1(void* arg);
void* Run2(void* arg);

void* show_time(void* arg);

//判断能量机关类型
void energy_direction(float angle);
//能量机关的参数更新
void energy_update();

//图片转视频
void ImgToVideo();

#endif



